<!--<html manifest="index.appcache">-->
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="user-scalable=no, width=device-width"/>
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.structure-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.inline-png-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.inline-svg-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.external-png-1.4.4.min.css">
        <link rel="stylesheet" href="css/css_aly.css">
              <!-- Choix du thème -->
              <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
              <link rel="stylesheet" href="css/bootstrap/jquery.mobile.icons.min.css">
        <!-- JavaScript -->
        <script src="js/jquery-1.11.1.min.js"></script>
        <script src="js/jquery.mobile-1.4.4.min.js"></script>
        <script src="js/connexion.js"></script>
        <title>Seance</title>
    </head>
    <body>

        <div data-role="page" data-dom-cahe=true data-fullscreen="true">

            <?php
            session_start();
            $idUser = $_SESSION["id"];
            // echo "$idUser";
            if (isset($_GET['idProjet'])) {
                    $idProjet = $_GET['idProjet'];
            }
            ?>

            <div data-role="header" data-theme="e" data-position="fixed">
              <?php echo" <a href='tacheSeance.php?idProjet=$idProjet' class='ui-btn ui-btn-left ui-btn-icon-left ui-corner-all ui-shadow ui-icon-arrow-l'> Previous</a>";?>
                <h1>Seances</h1>
                <a href="accueil.php" class="ui-btn ui-btn-right ui-btn-icon-right ui-corner-all ui-shadow ui-icon-home"> Home</a>
            </div>
            <div data-role="content">
                <?php
                // Montrer les erreurs
                ini_set('display_errors', 1);
                ini_set('display_startup_errors', 1);
                error_reporting(-1);
                if (isset($_GET['idProjet'])) {
                    $idProjet = $_GET['idProjet'];

                    require_once '../controller/SeanceManager.php';
                    include_once '../model/config.php';
                    $manager = new SeanceManager($bdd);
                    $list = $manager->getListSeance($idProjet);
                    
                    foreach ($list as $seance) {
                        $libel = utf8_encode($seance->getLibelleSeance());
                        $date =$seance->getDateSeance();               
                        echo '<a href="#" data-role="button">';
                        echo $seance->getLibelleSeance();                        
                        echo "<span class='ui-li-count'>$date </span>";
                        echo '</a>';                       
                        echo" <br/>";
                    }
                
                    echo '<br>';
                }
                ?>



            </div>
            <div data-role="footer" data-theme="e" data-position="fixed" >
                <h1> &copy INSA TOULOUSE</h1>
            </div>
        </div>
    </body>
</html>
